import request from '@/utils/request.js'
import {useTokenStore} from '@/stores/token.js'


//商品列表查询
export const articleListService=(params)=>{
   return  request.get('/article',{params:params})
}

//商品添加
export const articleAddService=(articleData)=>{
   return request.post('/article',articleData);
}

//商品修改
export const articleUpdateService=(articleData)=>{
   return request.put('/article',articleData);
}

//删除商品
export const articleDeleteService=(id)=>{
   return request.delete('/article?id='+id)
}